package testdomainmedicine;

import conditionsAPI.ConditionDuplicatedException;
import conditionsAPI.SimpleDomainCondition;

public class BloodTestCondition extends SimpleDomainCondition {

	public BloodTestCondition(String id) throws ConditionDuplicatedException {
		super(id);
	}
	
	@Override
	public boolean checkConditionState(Object domainObject) {
		MedicalPractice medicalPractice = (MedicalPractice) domainObject;
		return medicalPractice.getDescription().equals(MedicalPractice.Description.BLOOD_TEST);
	}
	
	protected boolean resetToInitialState(){
		return false;
	}
}
